//
//  MultipeerConnectivityManager.h
//  MessangerSkeleton
//
//  Created by User-23 on 4/26/14.
//  Copyright (c) 2014 IOTrainingCamp. All rights reserved.
//

#import "CCNode.h"
#import "cocos2d.h"
#import "Configuration.h"
#import "NetworkProtocol.h"

#import "MultipeerConnectivity/MultipeerConnectivity.h"

@interface MultipeerConnectivityManager : CCNode <MCSessionDelegate, MCBrowserViewControllerDelegate, NetworkProtocol>
{
    MCSession *mcSession;
}

@property (nonatomic, strong) MCPeerID *peerID;
@property (nonatomic, strong) MCSession *session;
@property (nonatomic, strong) MCBrowserViewController *browser;
@property (nonatomic, strong) MCAdvertiserAssistant *advertiser;
//@property (nonatomic) NSUInteger maximumNumberOfPeers;
//@property (nonatomic) NSUInteger minimumNumberOfPeers;


+ (id)sharedInstance;

- (void)startLookingForOponent;
- (void)dismissBrowser;


//-(void)setupPeerAndSessionWithDisplayName:(NSString *)displayName;
//-(void)setupMCBrowser;
//-(void)advertiseSelf:(BOOL)shouldAdvertise;

@end
